Fix #281: Allow unauthenticated access to public read-only routes#320
Merged
Fix #281: Allow unauthenticated access to public read-only routes#320
Conversation
Enable visitors to explore the platform without wallet connection by opening read-only routes to all users: Public routes (no authentication required): - /feed - Real-time tips across the platform - /leaderboard - Top tippers and recipients - /stats - Platform-wide aggregate statistics Protected routes (authentication required): - /send, /batch, /token-tip - Sending tips - /activity, /profile, /block - User account features - /admin, /telemetry - Owner-only administrative features Changes: - Updated ROUTE_META in routes.js to mark public vs authenticated routes - Created RequireAuth component to show inline wallet connection prompts - Refactored App.jsx routing to support mixed authenticated/unauthenticated - Navigation dynamically filters items based on auth and admin status - Root path redirects to /feed for unauthenticated users (was /send) - Updated routes.test.js to verify public and authenticated route separation Testing: - All 1712 frontend tests passing (including 1 new test) - All 91 contract tests passing - Routing tests cover both authenticated and public behaviors This allows first-time visitors to immediately see live activity and platform value without friction, addressing major onboarding concerns for hackathon judging and product discovery. Fixes #281
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enables unauthenticated visitors to explore platform value immediately without requiring wallet connection, reducing onboarding friction for hackathon judging and product discovery.
Public Routes (No Authentication)
Protected Routes (Authentication Required)
Implementation Details
Testing
Acceptance Criteria Met
New visitors can browse live feed, leaderboard, and platform stats without wallet
Send tip, batch tip, token tip, profile management remain protected
Public routes have clear upgrade prompts when wallet is required
Routing tests cover authenticated and unauthenticated behavior
Fixes #281